Skip to content

[feat] quota exceeded error message - #20

Merged
brandonkachen merged 19 commits into
mainfrom
brandon/quota-exceeded
Oct 15, 2024
Merged

brandonkachen merged 19 commits into
mainfrom
brandon/quota-exceeded

Conversation

@brandonkachen

Copy link
Copy Markdown
Contributor

No description provided.

Brandon Chen added 19 commits October 14, 2024 17:02
This commit enhances the user experience when quota is exceeded:
- Automatically send usage info instead of requiring manual input
- Update error messages to be more concise
- Refactor usage info sending logic for reusability
- Adjust pricing page display and client output formatting

These changes aim to provide clearer feedback to users about their
usage limits and streamline the quota management process.
This commit makes two main changes:

1. Reduces the OpenAI API timeout from 200,000ms to 120,000ms (2 minutes)
   to improve responsiveness and resource management.

2. Fixes a bug in the quota exceeded error logging, ensuring the correct
   fingerprintId is used in the error message.

These changes aim to enhance performance and improve error tracking for
better system monitoring and debugging.
This commit replaces all instances of console.error with logger.error
in the WebSocketMiddleware class and related functions. Using a
logger instead of console.error provides better control over log
levels and output formatting, improving the overall logging
strategy of the application.
This commit adds a responsive design to the navbar component:

- Introduces a mobile menu using a dropdown for smaller screens
- Adds icons to menu items for better visual cues
- Hides desktop navigation links on mobile devices
- Updates knowledge.md with responsive design guidelines
- Ensures consistent navigation experience across all device sizes
The error message for reaching the monthly usage limit has been
shortened and simplified. This change improves readability and makes
the message more concise for users who encounter this limit.
This commit improves the quota management logic in the websocket
middleware. Key changes include:

- Create quota manager instances earlier in the flow
- Remove unnecessary sendUsageInfo calls
- Fetch usage and limit information when quota is exceeded
- Apply consistent logic for both authenticated and anonymous users

These changes enhance code readability and prepare for future
improvements in quota handling and user feedback.
This commit enhances the error handling and quota management system:

- Add detailed error messages for quota exceeded scenarios
- Include current usage information in quota exceeded errors
- Refactor usage info retrieval for better reusability
- Update middleware to return ServerAction instead of Error
- Add support email to environment variables
- Improve CLI welcome message formatting

These changes aim to provide better user feedback and streamline the
quota management process across the application.
- Remove outdated sections on code organization and logging
- Add recent updates section detailing error handling improvements
- Refactor usage information handling and naming
- Update quota exceeded error message implementation
- Add environment configuration for support email
- Improve CLI welcome message formatting
Expand guidelines for maintaining knowledge files to improve
clarity and usefulness of project documentation. Add focus on
high-level impacts, conciseness, and relevance to long-term
project understanding.
This commit includes several changes to enhance user experience:
- Remove  parameter from  function
- Update error messages to be more informative and user-friendly
- Refactor CLI and client logic for handling usage limits
- Improve referral system messaging
- Remove unnecessary usage refresh in CLI

These changes aim to provide clearer feedback to users about
their usage limits and available options for increasing credits.
This commit enhances the user quota system and its documentation:

- Add a new section on User Quota and Billing in knowledge.md
- Detail usage limit handling, including warning messages and error
  scenarios
- Update client.ts to set lastWarnedPct to 100 when quota is exceeded
- Ensure consistent error messaging for quota limit violations

These changes improve user experience and system reliability for
quota management.
This commit adds an info log when a referral link is not generated
due to specific reasons. This will help in debugging and monitoring
the referral link generation process, providing more visibility into
why certain users may not receive a referral link.
This commit enhances the referral system by:
- Adding more detailed logging in websocket-action.ts
- Refactoring hasMaxedReferrals function for better error handling
- Introducing a new error case for unexpected issues
- Improving code readability and maintainability

These changes will help in debugging and provide a more robust
referral system for users.
This commit enhances the referral system by:
- Adding more detailed logging in the backend
- Expanding error handling in the common utility function
- Including referral count in the response
- Updating the knowledge base with logging best practices

These changes will help with debugging and provide more
context for referral-related issues.
This commit enhances the logging for referral link generation in the
websocket action. It improves readability by breaking a long log
statement into multiple lines, making it easier to maintain and
understand. The change also ensures consistent formatting across
the logging statements in this function.
- Rename getUsageInfo to genUsageResponse for clarity
- Add referralLink to usage response and client handling
- Update usage calculation in onUserInput function
- Document hot reloading setup for backend and npm-app
- Streamline usage warning display in client

These changes enhance the usage tracking system and improve the
development experience for both backend and frontend.
This change modifies the dev script in package.json to watch for
changes in both the src directory and the common/src directory.
It ensures that the development server restarts when changes are
made to shared code in the common directory, improving the
development workflow and reducing manual restarts.
@brandonkachen
brandonkachen merged commit f2c2379 into main Oct 15, 2024
@brandonkachen
brandonkachen deleted the brandon/quota-exceeded branch October 15, 2024 22:35
JasonMMIV added a commit to JasonMMIV/Anybuff that referenced this pull request Sep 7, 2026
…run guardrails, theme mode, mentions

Close six items from the APP gap list (CodebuffAI#4, CodebuffAI#9, CodebuffAI#11, CodebuffAI#17, CodebuffAI#18, CodebuffAI#20):
- CodebuffAI#4 image attachments/clipboard paste: RunImagePart contracts + multimodal
  RunPromptPayload.content -> client.run({content}); composer paste & thumbnails
- CodebuffAI#9 bash mode (!command): host-core runBashCommand channel (scrubbed env,
  timeout clamp, truncation) + <user_terminal_commands> context baking
- CodebuffAI#11 <PLAN> blocks render as a bordered plan box card in AssistantBubble
- CodebuffAI#17 maxAgentSteps/costMode: persisted settings + updateRunGuardrails,
  forwarded to client.run; composer Steps/Cost quick selects
- CodebuffAI#18 theme follows system: 3-way system/light/dark selector with
  matchMedia listener and nativeTheme sync (bump to 1.1.0)
- CodebuffAI#20 @mention: custom-agent completion from 3-tier .agents scan, Tab path
  completion, agentId override routed through runPrompt

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
JasonMMIV added a commit to JasonMMIV/Anybuff that referenced this pull request Sep 7, 2026
… only, mention = spawn (ADR-23)

The CodebuffAI#20 @agent menu had grown a per-turn root override (agentId payload →
start-run) that stuck across messages with no visible indicator or way back
to base2. Upstream CLI evidence (cli/src/chat.tsx handleMentionItemClick,
cli/src/utils/local-agent-registry.ts loadLocalAgents): an @agent pick only
inserts text; the root stays the mode's agent and spawns the mention as a
SUB-AGENT ("Spawn mentioned agents"); the only root switches upstream are
the --agent startup flag and the agentMode toggle.

- Remove the agentId root-override chain end-to-end (contracts → handlers-runs
  → start-run → preload → host-ws → App.tsx mentionedAgentId → Composer pick);
  root now resolves solely from AGENT_ID_FOR_MODE (exported).
- Add AnyBuff:listMentionAgents channel: the @-menu is now the current mode
  root's spawnableAgents, reusing the run's own merged definitions
  (buildAgentDefinitions exported) so the menu can never offer an unspawnable
  agent; .agents/ locals always included and override bundled ids; chat mode
  keeps its lightweight spawn set (ADR-20); context-pruner deliberately hidden
  (zero-LLM maintenance routine, silenced in the UI).
- Composer agent pick = pure text insertion (upstream handleMentionItemClick).
- Contract tests for default/chat spawnable filtering (49 pass).

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
LeverageAISMBs pushed a commit to LeverageAISMBs/codebuff that referenced this pull request Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant